﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HotelSoft.HotelManagement_DAO;
using HotelSoft.HotelManagement_DTO;
using System.Collections;
using System.Data;

namespace HotelSoft.HotelManagement_BUS
{
    public class HoaDon_ThanhToanBUS : AbstractBUS
    {
        private HoaDon_ThanhToanDAO dao = new HoaDon_ThanhToanDAO();

        public ArrayList LayDanhSachHoaDon_ThanhToan()
        {
            return dao.LayDanhSachHoaDon_ThanhToan();
        }

        public override bool Them(object AbstractDTO)
        {
            return dao.Them(AbstractDTO);
        }

        public override void Xoa(ArrayList dsHoaDon_ThanhToan)
        {
            dao.Xoa(dsHoaDon_ThanhToan);
        }
        
        public override bool CapNhatThongTin(object AbstractDTO)
        {
            return dao.CapNhatThongTin(AbstractDTO);
        }

        //public DataTable TraCuudondulieu(object AbstractDTO)
        //{
        //    return HoaDon_ThanhToanDAO.TraCuudondulieu(AbstractDTO);
        //}
        public bool CapNhatThongTindondulieu(object AbstractDTO)
        {
            return HoaDon_ThanhToanDAO.CapNhatThongTindondulieu(AbstractDTO);
        }

        public DataTable LayDSHoaDon(object AbstractDTO)
        {
            return dao.LayDSHoaDon(AbstractDTO);
        }

        public bool KTHD(object AbstractDTO)
        {
            return dao.KTHD(AbstractDTO);
        }

        public DataTable getInfo(object AbstractDTO)
        {
            return dao.getInfo(AbstractDTO);
        }

        public ArrayList LayDanhSachHoaDon_Tracuu(object AbstractDTO)
        {
            return dao.LayDanhSachHoaDon_Tracuu(AbstractDTO);
        }

        public bool UpdateTongTien(object AbstractDTO)
        {
            return dao.UpdateTongTien(AbstractDTO);
        }
    }
}
